using System;
using System.Data;
using System.ComponentModel;
using System.Reflection;
using System.Collections.Generic;

namespace VSSAHT.Transfer
{
	[Serializable]
	public class LocationDTOBase : DTOBase
	{
		#region Property LocationCode

		private string _locationCode;

		/// <summary>
		///  Property LocationCode
		/// <summary>
		public string LocationCode
		{
			get
			{
				return _locationCode;
			}

			set
			{
				if (_locationCode != value)
				{
					this.OnLocationCodeChanging(value);
					_locationCode = value;
					this.OnLocationCodeChanged();
					OnChanged();
				}
			}
		}

		#endregion

		#region Property LocationID

		private Guid _locationID;

		/// <summary>
		///  Property LocationID
		/// <summary>
		public Guid LocationID
		{
			get
			{
				return _locationID;
			}

			set
			{
				if (_locationID != value)
				{
					this.OnLocationIDChanging(value);
					_locationID = value;
					this.OnLocationIDChanged();
					OnChanged();
				}
			}
		}

		#endregion

		#region Property LocationName

		private string _locationName;

		/// <summary>
		///  Property LocationName
		/// <summary>
		public string LocationName
		{
			get
			{
				return _locationName;
			}

			set
			{
				if (_locationName != value)
				{
					this.OnLocationNameChanging(value);
					_locationName = value;
					this.OnLocationNameChanged();
					OnChanged();
				}
			}
		}

		#endregion

		#region Property RowVersion

		private string _rowVersion;

		/// <summary>
		///  Property RowVersion
		/// <summary>
		public string RowVersion
		{
			get
			{
				return _rowVersion;
			}

			set
			{
				if (_rowVersion != value)
				{
					this.OnRowVersionChanging(value);
					_rowVersion = value;
					this.OnRowVersionChanged();
					OnChanged();
				}
			}
		}

		#endregion

		#region Extensibility Method Declarations

		protected virtual void OnLocationCodeChanging(string locationCode) { }
		protected virtual void OnLocationCodeChanged() { }
		protected virtual void OnLocationIDChanging(Guid locationID) { }
		protected virtual void OnLocationIDChanged() { }
		protected virtual void OnLocationNameChanging(string locationName) { }
		protected virtual void OnLocationNameChanged() { }
		protected virtual void OnRowVersionChanging(string rowVersion) { }
		protected virtual void OnRowVersionChanged() { }

		#endregion

	}
}
